import { useNavigate, useParams, useLocation } from "react-router-dom";
function Home(props) {
  const nav = useNavigate();
  const goList = () => {
    nav("/list");
  };
  console.log(useParams());
  console.log(useLocation());
  return (
    <div>
      <h1>Home works</h1>
      <button onClick={goList}>go List</button>
    </div>
  );
}

export default Home;
